package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="YKJH_MXGL"
 *     
*/
public class YkjhMxgl implements Serializable {

    /** identifier field */
    private String jhglbh;

    /** persistent field */
    private String jhzybhHz;

    /** persistent field */
    private String jhzybhMx;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt12;

    /** full constructor */
    public YkjhMxgl(String jhglbh, String jhzybhHz, String jhzybhMx, String zt1, String zt12) {
        this.jhglbh = jhglbh;
        this.jhzybhHz = jhzybhHz;
        this.jhzybhMx = jhzybhMx;
        this.zt1 = zt1;
        this.zt12 = zt12;
    }

    /** default constructor */
    public YkjhMxgl() {
    }

    /** minimal constructor */
    public YkjhMxgl(String jhglbh, String jhzybhHz, String jhzybhMx) {
        this.jhglbh = jhglbh;
        this.jhzybhHz = jhzybhHz;
        this.jhzybhMx = jhzybhMx;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="JHGLBH"
     *         
     */
    public String getJhglbh() {
        return this.jhglbh;
    }

    public void setJhglbh(String jhglbh) {
        this.jhglbh = jhglbh;
    }

    /** 
     *            @hibernate.property
     *             column="JHZYBH_HZ"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getJhzybhHz() {
        return this.jhzybhHz;
    }

    public void setJhzybhHz(String jhzybhHz) {
        this.jhzybhHz = jhzybhHz;
    }

    /** 
     *            @hibernate.property
     *             column="JHZYBH_MX"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getJhzybhMx() {
        return this.jhzybhMx;
    }

    public void setJhzybhMx(String jhzybhMx) {
        this.jhzybhMx = jhzybhMx;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT12"
     *             length="50"
     *         
     */
    public String getZt12() {
        return this.zt12;
    }

    public void setZt12(String zt12) {
        this.zt12 = zt12;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("jhglbh", getJhglbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof YkjhMxgl) ) return false;
        YkjhMxgl castOther = (YkjhMxgl) other;
        return new EqualsBuilder()
            .append(this.getJhglbh(), castOther.getJhglbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getJhglbh())
            .toHashCode();
    }

}
